>> student(1).test              %ӽṹȡϢ
ans =
    99    56    96    87    67    69    87    76    92
>> student(1).test(5)             
ans =
    67
>> student(1).add
ans =
School of civil engneering.Tsinghua university
>> student(2).add
ans =
School of Psychology.Chongqing university
>> S=sum(student(1).test)        %Ϣеãƽ
S =
   729
>> A=mean(student(1).test)
A =
    81
>>
%ҪעǣûͬʱӶṹȡĳԱ磬ʽstudent.nameᵼ´ûҪѧ֣ʹѭfor(MATLAB 7ԵʹԺ½ڽϸ)
>> for j=1:length(student)
   disp(student(j).name);
   end
Huang Liang
Wei Huan
>> test_list=[];
>> for j=1:length(student)
   test_list=[test_list student(j).test]
   end
test_list =
    99    56    96    87    67    69    87    76    92
test_list =
  Columns 1 through 10 
    99    56    96    87    67    69    87    76    92    99
  Columns 11 through 18 
    65    88    78    76    98    75    96    59
>> mean(test_list)
ans =
   81.2778
